package com.cunzhang.server.mapper;

import com.cunzhang.pojo.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 查询某一菜品的所有口味
     * @param dishFlavor
     * @return
     */
    List<DishFlavor> selectFlavor(DishFlavor dishFlavor);

    /**
     * 批量插入菜品口味数据
     * @param flavorList
     */
    void insertFlavors(List<DishFlavor> flavorList);

    /**
     * 批量删除菜品对应的口味
     * @param idList
     */
    void deleteFlavor(List<Integer> idList);
}
